<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});

/**
 * 留言板主页
 * @author 谢望鑫 <xiewxin@addcn.com>
 */
Route::any('message', 'MessageController@message');

/**
 * 用户管理页
 * @author 谢望鑫 <xiewxin@addcn.com>
 */
Route::any('userManage', 'UserController@userManage');

/**
 * 注册
 * @author 谢望鑫 <xiewxin@addcn.com>
 */
Route::any('doRegister', 'UserController@doRegister');

/**
 * 登录
 * @author 谢望鑫 <xiewxin@addcn.com>
 */
Route::any('login', 'UserController@login');

/**
 * 退出
 * @author 谢望鑫 <xiewxin@addcn.com>
 */
Route::any('logout', 'UserController@logout');

/**
 * 黑名单设置
 * @author 谢望鑫 <xiewxin@addcn.com>
 */
Route::any('blacklistSetting', 'UserController@blacklistSetting');

/**
 * 用户列表
 * @author 谢望鑫 <xiewxin@addcn.com>
 */
Route::any('userList', 'UserController@userList');

/**
 * 留言列表
 * @author 谢望鑫 <xiewxin@addcn.com>
 */
Route::any('messageList', 'MessageController@messageList');

/**
 * 发送留言
 * @author 谢望鑫 <xiewxin@addcn.com>
 */
Route::any('sendMsg', 'MessageController@sendMsg');

/**
 * 上传
 * @author 谢望鑫 <xiewxin@addcn.com>
 */
Route::post('upload', 'UserController@upload');

/**
 * 数据库模型测试
 * @author 谢望鑫 <xiewxin@addcn.com>
 */
Route::any('messageAll', 'messageController@messageAll');

